package com.aaa.fpa.dao;

import com.aaa.pojo.ResultDiv;
import com.aaa.pojo.ViewTestResultFpa;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * (ViewTestResultFpa)表数据库访问层
 *
 * @author
 * @since 2022-07-08 10:00:04
 */
public interface ViewTestResultFpaDao {


    /**
     * 查询指定行数据
     *
     * @param viewTestResultFpa 查询条件
     * @param pageable          分页对象
     * @return 对象列表
     */
    List<ViewTestResultFpa> queryAllByLimit(@Param("viewTestResultFpa") ViewTestResultFpa viewTestResultFpa, @Param("pageable") Pageable pageable);

    Long count(ViewTestResultFpa viewTestResult);

    /**
     * @param viewTestResultFpa
     * @return ViewTestResultFpa
     * @create by: feng (zhaixing@163.com)
     * @description: 根据指定id 查询对应数据
     * @create time: 2022/7/15 15:42
     */
    ViewTestResultFpa queryResultFpaById(ViewTestResultFpa viewTestResultFpa);

    /**
     * @param
     * @return List<ViewTestResultFpa>
     * @create by: feng (zhaixing@163.com)
     * @description: 查询所有信息
     * @create time: 2022/7/15 16:12
     */
    List<ViewTestResultFpa> queryAllPlanFpa();

    ViewTestResultFpa seleResultFpa(Integer testerId);

    /**
     * @param
     * @return
     * @create by: feng (zhaixing@163.com)
     * @description: 查询所有数据 排重
     * @create time: 2022/7/19 21:10
     */
    List<ViewTestResultFpa> queryAllResultPlanFpa();
    /**
     * @Author zhouhangyong
     * @Description 查询对应性格的信息//TODO
     * @Date 18:24 2022/7/20
     * @Param id
     * @return List<ResultDiv>
     **/
    List<ResultDiv> queryAllDiv( Integer id);
    /**
     * @create by: feng (zhaixing@163.com)
     * @description: 删除测试结果
     * @create time: 2022/7/22 19:50
     * @param testerId
     * @return
     */
    Integer delResultFpa(String testerId);
}

